const http = uni.$u.http
export const getBaseUrl = () => {
	return "https://my.wthoo.com";
}
//登录
export const login = (params = {}, data = {}) => http.post('/api/user/miniLogin', params,data)
//绑定手机号
export const bindMiniMobile = (params = {}, data = {}) => http.post('/api/user/bindMiniMobile', params,data)
//修改个人资料
export const updateProfile = (params = {}) => http.post('/api/user/profile', params)
//获取团课列表
export const getEducationList = (params = {}) => http.post('/api/combo/courseList', params)
//获取团课筛选数据
export const getScreening = (params = {}) => http.post('/api/combo/screen', params)
//获取团课筛选数据
export const getScreeningKe = (params = {}) => http.post('/api/combo/comboList', params)
//门店列表
export const getShopList = (params = {}) => http.post('/api/common/shopList', params)
//团课详情
export const getOrderDetails = (params = {}) => http.get('/api/combo/detail', params)
//团课下单
export const addOrder = (params = {}) => http.post('/api/combo/addOrder', params)
//支付成功
export const paySuccess = (params = {}) => http.post('/api/combo/paySuccess', params)
//获取我的预约
export const getSubscribeList = (params = {}) => http.post('/api/Subscribe/lists', params)
//预约详情
export const getSubscribeDetils = (params = {}) => http.post('/api/Subscribe/detail', params)
//确认预约
export const getConfirmBooking = (params = {}) => http.post('/api/Subscribe/sign', params)
//获取优惠券
export const getCardsList = (params = {}) => http.get('/api/partner/getCouponList', params)
//减少优惠券
export const getCardsJian = (params = {}) => http.post('/api/partner/jianCouponNums', params)
//门店详情
export const getStoresDetails = (params = {}) => http.post('/api/shop/getShopInfo', params)
//我的优惠券列表
export const getMyCouponList = (params = {}) => http.post('/api/user/getCouponList', params)
//绑定上下级
export const getBind = (params = {}) => http.post('/api/user/share', params)
//充值
export const addRechage = (params = {}) => http.post('/api/user/addRechageOrder', params)
//充值配置
export const getRechargePrice = (params = {}) => http.post('/api/common/getRechargePrice', params)
//获取合伙人数据
export const getCopartnerData = (params = {}) => http.post('/api/partner/getData', params)
//推广会员
export const getUsers = (params = {}) => http.post('/api/partner/getUsers', params)
//分红明细
export const getBonusList = (params = {}) => http.post('/api/partner/getBonusList', params)
//上传图片
export const uploadProfile = (params = {}) => http.post('/api/user/profile', params)
//获取训练营列表
export const getComboList = (params = {}) => http.post('/api/camp/comboList', params)
//获取训练营详情
export const getComboDetail = (params = {}) => http.post('/api/camp/detail', params)
//获取训练营筛选
export const getComboScreen = (params = {}) => http.post('/api/camp/screen', params)
//训练营下单
export const addComboOrder = (params = {}) => http.post('/api/camp/addOrder', params)
//训练营支付成功
export const payComboSuccess = (params = {}) => http.post('/api/camp/paySuccess', params)
//获取私教列表
export const getTeachList = (params = {}) => http.get('/api/coach/lists', params)
//私教筛选
export const getTeachScreen = (params = {}) => http.post('/api/Coach/screen', params)
//获取私教门店
export const getTeachShopList = (params = {}) => http.post('/api/common/shopList', params)
//获取私教详情
export const getTeachDetail = (params = {}) => http.post('/api/coach/detail', params)
//获取私教评论
export const getTeachCommentList = (params = {}) => http.post('/api/comment/lists', params)
//获取私教 私教课
export const getPersonal = (params = {}) => http.post('/api/coach/getPersonal', params)
//获取私教 私教课详情
export const getPersonalDetail = (params = {}) => http.post('/api/Personal/detail', params)
//私教课下单
export const personalAdd = (params = {}) => http.post('/api/personal/addOrder', params)
//私教课支付成功
export const personalPay = (params = {}) => http.post('/api/personal/paySuccess', params)
//获取私教 训练营
export const getTeachCampList = (params = {}) => http.post('/api/coach/getCampList', params)
//获取私教 训练营 训练营详情
export const getTeachCampDetailList = (params = {}) => http.post('/api/camp/coursedetail', params)
//获取线上课列表
export const getOnlineList = (params = {}) => http.post('/api/Online/comboList', params)
//获取线上课筛选数据
export const getOnlineSearch = (params = {}) => http.post('/api/Online/search', params)
//获取线上课筛选数据
export const getOnlineCourse = (params = {}) => http.post('/api/online/getCourseList', params)
//获取线上课详情
export const getOnlineDetail = (params = {}) => http.post('/api/Online/detail', params)
//获取线上课 下单
export const onlineAdd = (params = {}) => http.post('/api/Online/addOrder', params)
//获取线上课 支付成功
export const onlinePaySuccess = (params = {}) => http.post('/api/Online/paySuccess', params)
//获取首页
export const getHome = (params = {}) => http.post('/api/index/index', params)
//获取首页 课程推荐
export const getHomeCampList = (params = {}) => http.post('/api/index/campList', params)
//获取首页 健身门店
export const getHomeShopList = (params = {}) => http.post('/api/index/shopList', params)
//获取首页 团课专区
export const getHomeComboList = (params = {}) => http.post('/api/index/comboList', params)
//获取首页 私教专区
export const getHomeCoachList = (params = {}) => http.post('/api/index/coachList', params)
//会员卡充值
export const openVip = (params = {}) => http.post('/api/recharge/addOrder', params)
//会员卡充值详情
export const openVipDetail = (params = {}) => http.post('/api/recharge/index', params)
//获取排行榜
export const getRankList = (params = {}) => http.post('/api/user/rankList', params)
//获取用户信息
export const getUserInfo = (params = {}) => http.post('/api/user/getData', params)
//添加收藏
export const addCollection = (params = {}) => http.post('/api/Collection/add', params)
//收藏列表
export const getCollectionList = (params = {}) => http.post('/api/Collection/lists', params)
//拼团列表
export const getProjectList = (params = {}) => http.post('/addons/miniform/index/project', params)
//拼团下单
export const addProject = (params = {}) => http.post('/api/miniform/addOrder', params)
//拼团详情
export const getProjectInfo = (params = {}) => http.post('/api/miniform/getInfo', params)
//支付
export const miNiPay = (params = {}) => http.post('/api/pay/miniPay', params)
//拼团支付
export const pinTuanPay = (params = {}) => http.post('/api/pay/PintuanPay', params)
//充值支付
export const rechargePay = (params = {}) => http.post('/api/pay/rechargePay', params)
//根据经纬度获取城市
export const getCityName = (params = {}) => http.post('/api/common/get_address', params)
//点赞
export const setZan = (params = {}) => http.post('/api/comment/zan', params)
//获取协议信息
export const getAgreement = (params = {}) => http.post('/api/common/getContent', params)
//获取会员卡列表
export const getVipList = (params = {}) => http.get('/addons/vip/api.index/index', params)
//会员卡充值续费
export const setVipSubmit = (params = {}) => http.post('/addons/vip/api.order/submit', params)
//获取我的订单
export const getOrderList = (params = {}) => http.post('/api/user/orderList', params)
//获取我的订单详情
export const getMyOrderDetails = (params = {}) => http.post('/api/user/getOrderInfo', params)
//取消我的订单
export const cancelMyOrder = (params = {}) => http.post('/api/user/closeOrder', params)
//拼团分享
export const getPinTuanBind = (params = {}) => http.post('/api/user/share_active', params)
//获取身份列表
export const getRoleList = (params = {}) => http.post('/api/partner/getRoleList', params)
//获取优惠券分享绑定
export const getShareParent = (params = {}) => http.post('/api/user/share_parent', params)

//获取商城首页轮播图
export const getShopBanner = (params = {}) => http.post('/addons/unishop/ads/index', params)
//获取商城首页分类
export const getShopMenu = (params = {}) => http.post('/addons/unishop/category/menu', params)
//获取商城首页 商品列表
export const getGoodsList = (params = {}) => http.post('/addons/unishop/product/lists', params)
//获取商城分类
export const getShopCategoryAll = (params = {}) => http.post('/addons/unishop/category/all', params)
//获取商城分类列表
export const getShopCategoryAllList = (params = {}) => http.post('/addons/unishop/product/lists', params)
//添加商品进购物车
export const getShopAdd = (params = {}) => http.post('/addons/unishop/cart/add', params)
//删除购物车商品
export const getShopCartDelete = (params = {}) => http.post('/addons/unishop/cart/delete', params)
//获取商城购物车列表
export const getShopCartList = (params = {}) => http.post('/addons/unishop/cart/index', params)
//获取商城 商品详情
export const getShopGodsDetail = (params = {}) => http.post('/addons/unishop/product/detail', params)
//获取商城 收货地址列表
export const getShopAddress = (params = {}) => http.post('/addons/unishop/address/all', params)
//获取商城  添加收货地址
export const addShopAddress = (params = {}) => http.post('/addons/unishop/address/add', params)
//获取商城 获取地区信息
export const getShopCity = (params = {}) => http.post('/addons/unishop/address/area', params)
//获取商城 获取单个地址信息
export const getShopAddressInfo = (params = {}) => http.post('/addons/unishop/address/info', params)
//获取商城 删除收货地址
export const getShopAddressDelete = (params = {}) => http.post('/addons/unishop/address/delete', params)
//获取商城 编辑收货地址
export const getShopAddressEdit = (params = {}) => http.post('/addons/unishop/address/edit', params)
//获取商城 创建订单
export const getShopOrderCreate = (params = {}) => http.post('/addons/unishop/order/create', params)
//获取商城 提交订单
export const getShopOrderSubmit = (params = {}) => http.post('/addons/unishop/order/submit', params)
//获取商城 获取运费模板
export const getShopDelivery = (params = {}) => http.post('/addons/unishop/order/getDelivery', params)
//获取商城 获取评论别列表
export const getShopEvaluate = (params = {}) => http.post('/addons/unishop/product/evaluate', params)
//获取商城 支付
export const getShoPay = (params = {}, data = {}) => http.post('/addons/unishop/pay/unify', params,data)
//获取商城订单列表
export const getShoOrderList = (params = {}) => http.post('/addons/unishop/order/getOrders', params)
//获取商城订单详情
export const getShoOrderDeyail = (params = {}) => http.post('/addons/unishop/order/detail', params)
//获取商城订单取消
export const getShoOrderCancel = (params = {}, data = {}) => http.post('/addons/unishop/order/cancel', params,data)
//获取商城订单确认收货
export const getShoOrderReceived = (params = {}, data = {}) => http.post('/addons/unishop/order/received', params,data)
//获取商城订单评价
export const getShoOrderEvaluate = (params = {}) => http.post('/addons/unishop/order/comment', params)
//获取门店列表
export const getSeleteShopList = (params = {}) => http.post('/api/shop/getShopList', params)
//获取我的门店
export const getSeleteMyShopList = (params = {}) => http.post('/api/shop/getMyshop', params)
//获取切换门店
export const getSeleteShop = (params = {}) => http.post('/api/shop/editShop', params)
//获取商城  首页推荐
export const getShopRecommend = (params = {}) => http.post('/addons/unishop/product/recommend', params)
//获取附近门店
export const getFuJinShop = (params = {}) => http.post('/api/shop/editShopId', params)
//获取门店列表
export const getMapShopList = (params = {}) => http.post('/api/shop/getShopList', params)
//获取门店团课
export const getShopComboList = (params = {}) => http.post('/api/shop/getcomboList', params)
//获取门店私教
export const getShopCoachList = (params = {}) => http.post('/api/shop/getCoachList', params)
//获取门店训练营
export const getShopCampList = (params = {}) => http.post('/api/shop/getCampList', params)
//获取分享海报
export const getQrcode = (params = {}) => http.post('/api/miniform/getQrcode', params)
//获取团课分类
export const getCategory = (params = {}) => http.post('/api/combo/category', params)
//获取用户账户
export const getAccount = (params = {}) => http.post('/api/user/getAccount', params)
//获取童虎账户明细
export const getAccountLog = (params = {}) => http.post('/api/user/getAccountLog', params)
//获取首页问卷调查
export const getForm = (params = {}) => http.post('/api/question/getForm', params)
//获取问卷调查列表
export const getFormList = (params = {}) => http.post('/api/question/getFormList', params)
//提交问卷调查
export const addForm = (params = {}, data = {}) => http.post('/api/question/addForm', params,data)
//
export const getFormId = (params = {}, data = {}) => http.post('/api/question/getFormInfo', params,data)



//获取可用账户
export const getAccountList = (params = {}) => http.post('/api/card/AccountList', params)
//获取兑换记录
export const getCardList = (params = {}) => http.post('/api/card/getCardList', params)
//课时卡退回
export const getTuiCard = (params = {}) => http.post('/api/card/tuiCard', params)
//获取可兑换的课程卡
export const getCardComboList = (params = {}) => http.post('/api/card/comboList', params)
//兑换课程卡
export const getDuihuanCard = (params = {}) => http.post('/api/card/duihuan', params)
//时效卡支付
export const getCardPay = (params = {}) => http.post('/api/pay/cardPay', params)

//切换合伙人接口 新
//获取合伙人数据
export const getPartnerData = (params = {}) => http.post('/api/partner/getPartnerData', params)
//获取合伙人菜单
export const getMenuList = (params = {}) => http.post('/api/partner/getMenuList', params)
//掌柜贡献分析
export const getAnalysisGx = (params = {}) => http.post('/api/partner/getAnalysisGx', params)
//掌柜贡献排名
export const getRanklistPm = (params = {}) => http.post('/api/partner/getRanklistPm', params)
//转介绍掌柜
export const getZhituiPm = (params = {}) => http.post('/api/partner/getZhituiPm', params)
//待唤醒客户汇总
export const getHuanxing = (params = {}) => http.post('/api/partner/getHuanxing', params)
//冠军报表
export const getGuanJun = (params = {}) => http.post('/api/partner/getGuanJun', params)
//客户流失分析
export const getLiushi = (params = {}) => http.post('/api/partner/getLiushi', params)
//掌柜冠军
export const getGuanjia = (params = {}) => http.post('/api/partner/getGuanjia', params)
//待唤醒客户汇总
export const getHuanxingList = (params = {}) => http.post('/api/partner/getHuanxingList', params)

//活动列表
export const getActivityList = (params = {}) => http.post('/api/partner/getActivityList', params)
//活动详情
export const getActivityDetail = (params = {}) => http.post('/api/partner/getActivityDetail', params)

//参与活动
export const addActivity = (params = {}) => http.post('/api/partner/addActivity', params)

//活动支付
export const ActivityPay = (params = {}) => http.post('/api/pay/ActivityPay', params)
//提现列表
export const getwithdrawList = (params = {}) => http.post('/api/partner/getwithdrawList', params)
//申请提现
export const addWithdraw = (params = {}) => http.post('/api/partner/addWithdraw', params)
//编辑信息
export const editPartnerInfo = (params = {}) => http.post('/api/partner/editPartnerInfo', params)
//获取信息
export const getPartnerInfo = (params = {}) => http.post('/api/partner/getPartnerInfo', params)
//意见反馈
export const addFeedback = (params = {}) => http.post('/api/partner/addFeedback', params)
//意见反馈列表
export const getFeedbackList = (params = {}) => http.post('/api/partner/getFeedbackList', params)
//共享商圈列表
export const getQuanList = (params = {}) => http.post('/api/partner/getQuanList', params)
//共享商圈详情
export const getQuanDetail = (params = {}) => http.post('/api/partner/getQuanDetail', params)
//邀请海报
export const getQrcodenew = (params = {}) => http.post('/api/partner/getQrcode', params)
//退出登录
export const logout = (params = {}) => http.post('/api/user/logout', params)
//编辑信息
export const addShare = (params = {}) => http.post('/api/user/share', params)

//表单列表
export const formgetList = (params = {}) => http.post('/api/form/getList', params)

//表单详情
export const formgetInfo = (params = {}) => http.post('/api/form/getInfo', params)
//表单提交
export const formaddForm = (params = {}) => http.post('/api/form/addForm', params)

